﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Calculator : Form
    {
        private String text = "";
        private string b = "";
        private Int32 a = 1;
        private Int32 summa = 0;
        public Calculator()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            Console.WriteLine(text);
        }

        private void _1_Click(object sender, EventArgs e)
        {
            a = 1;
            text = "1";
            Console.WriteLine(text);
        }

        private void _2_Click(object sender, EventArgs e)
        {
            a = 2;
            text = "2";
            Console.WriteLine(text);
        }

        private void _3_Click(object sender, EventArgs e)
        {
            a = 3;
            text = "3";
            Console.WriteLine(text);
        }

        private void _4_Click(object sender, EventArgs e)
        {
            a = 4;
            text = "4";
            Console.WriteLine(text);
        }

        private void plus_Click(object sender, EventArgs e)
        {
            b = "plus";
            text = text + "+";
            Console.WriteLine(text);
        }

        private void ravno_Click(object sender, EventArgs e)
        {

        }

        private void clear_Click(object sender, EventArgs e)
        {
            text = "";
            Console.WriteLine(text);
        }

        private void Calculator_Load(object sender, EventArgs e)
        {
            Console.WriteLine(text);
        }

        private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
        {
            Console.WriteLine(text);
        }
    }
}
